package appapi.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 黑匣子导出 实体类
 *
 * @author hlm
 * @since
 */
@Data
@ApiModel(description = "黑匣子导出")
public class DeviceBlackBoxExportDTO implements Serializable {

    /**
     * 设备SN
     */
    @ApiModelProperty(value = "设备SN")
    @Excel(name = "设备SN",orderNum = "0",width = 50)
    private String deviceSn;

    /**
     * 现场编号
     */
    @ApiModelProperty(value = "现场编号")
    @Excel(name = "现场编号",orderNum = "0",width = 50)
    private String deviceNo;

    /**
     * 设备类型 0:塔吊 1:升降机 2:龙门吊 3:架桥机 4:爬模 5:挂篮
     */
    @ApiModelProperty(value = "设备类型 0:塔吊 1:升降机 2:龙门吊 3:架桥机 4:爬模 5:挂篮 ")
    @Excel(name = "现场编号",orderNum = "0",width = 50 ,replace = {"塔吊_0", "升降机_1", "龙门吊_2", "架桥机_3" , "爬模_4" ,"挂篮_5"})
    private Integer deviceType;

    /**
     * 所属公司
     */
    @ApiModelProperty(value = "所属公司")
    @Excel(name = "所属公司",orderNum = "0",width = 50)
    private String compName;

    /**
     * 所属项目
     */
    @ApiModelProperty(value = "所属项目")
    @Excel(name = "所属项目",orderNum = "0",width = 50)
    private String projName;

    /**
     * 在线状态
     */
    @ApiModelProperty(value = "在线状态")
    @Excel(name = "在线状态",orderNum = "0",width = 50 ,replace = {"在线_0", "离线_1"})
    private Integer deviceOnline;

    /**
     * 使用状态
     */
    @ApiModelProperty(value = "使用状态")
    @Excel(name = "使用状态",orderNum = "0",width = 50 , replace = {"正常_0", "停用_1", "损坏_2"})
    private Integer deviceUseStatus;

    /**
     * 最后上线时间
     */
    @ApiModelProperty(value = "最后上线时间")
    @Excel(name = "最后上线时间",orderNum = "0",width = 50 , format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastModifyTime;
}
